<?php
/*
 * File name : donor.php
 * Description : Allows Donor to review its donation and helps for Printout
 */
include_once "basePage.php";

class donor extends basePage{
	
	public function __construct()
    { 
    	
    }
    
    public function profile(){
    	echo <<<EPRINT
		   	 <h2><br/> Donor Profile </h2>
			 
            <form action = "" method = "post" name = "donorProfile">  
           		<table class = "donorprofile">
           		<tr><td> View Donation History </td><td> <a href = "http://localhost/good-mojo-donation/trunk/src/donormain.php"> Click here </a> </td></tr>
           		
           		<tr><td>  Buy Gold Star </td><td> <a href = "http://localhost/good-mojo-donation/trunk/src/buygoldstar.php"> Click here </a> </td></tr>
           		
           		<!-- <tr><td> Sign Up for a Pledge based Donation </td><td> <a href = "http://localhost/good-mojo-donation/trunk/src/Pledge.php"> Click here </a> </td></tr> -->
           		<tr><td> Sign Up for a Pledge based Donation </td><td> <a href = "http://localhost/good-mojo-donation/trunk/src/CallController.php"> Click here </a> </td></tr>
           		</table>
            </form>
EPRINT;
    }
  
    public function donor_profile()
    {	
    	echo '<a href = "http://localhost/good-mojo-donation/trunk/src/donormain.php"> Click here to View Donation History <br /></a> ';
 
    }
    public function buyer_profile()
    {
    	echo '<a href = "http://localhost/good-mojo-donation/trunk/src/buygoldstar.php"> Click here to Buy Gold Stars </a> ';
    }
	public function closeConn(){
	    mysql_close($con);
	}
}

$page = new donor();
$page->header();
$page->top_menu_donor();
$page->profile();
$page->footer();

?>
